package com.bw.wxy.mvp.view.pople.adapter;

import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.bw.wxy.R;
import com.bw.wxy.common.GlideUtils;
import com.bw.wxy.mvp.model.entity.UserFollowEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

public class UserFollowAdapter extends BaseQuickAdapter<UserFollowEntity.Values, BaseViewHolder> {
    public UserFollowAdapter( @Nullable List<UserFollowEntity.Values> data) {
        super(R.layout.item_follow_head, data);
    }
    @Override
    protected void convert(BaseViewHolder helper, UserFollowEntity.Values item) {
        helper.setText(R.id.follow_item_tv,item.author_name);
        ImageView imageView = helper.getView(R.id.follow_item_img);
        GlideUtils.getInstance().loadCircleImg(item.author_img,imageView);
    }
}

